package com.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.demo.entity.Student;
import com.example.demo.entity.StudentAccount;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface StudentService {
    Collection<Student> getAllStudent();
    List<Student> filterStudent(Student student);
    Student addStudent(Student student);
    Student addStudent(Student student,Long studentAccountId);
    Student updateStudent(Student student);
    Long deleteStudent(Long studentId);
    Student getStudentByStudentId(Long studentId);
    StudentAccount getStudentAccountByStudentId(Long studentId);
    StudentAccount updateSelfAccount(StudentAccount studentAccount);
    IPage pageFindStudent(int page, int piece);

    StudentAccount updatePassword(String account, String oldPassword, String newPassword);
}
